import { Controller, Get, Param, Query } from '@nestjs/common';
import { DistrictService } from './district.service';

@Controller('district')
export class DistrictController {
    constructor(private districtService:DistrictService) {

    }

    @Get(':parentId')
    district(@Param('parentId') parentId:number=0 ) {
        return this.districtService.getDistrictByParentId(Number(parentId))
    }
}
